﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tayninh2011
{
    class TnThreadClassFrmMap
    {
        FrmMap form;
      public TnThreadClassFrmMap(FrmMap myForm)
      {
         form = myForm;
      }

      public void Run(object _delegate,object param)
      {
         // Execute the specified delegate on the thread that owns
         // 'myFormControl1' control's underlying window handle.
         form.Invoke((Delegate)_delegate,param);
      }
    }
}
